var app = getApp()
Page({
  data: {
    data_url: "",
    circle_det: {},
    circleList:[]
  },
  onLoad: function (options) {
    var that = this
    this.setData({
      data_url: app.globalData.data_url
    })
    // wx.request({
    //   url: that.data.data_url + "/GPD/getMerchatById.do",
    //   data: { id: options.id },
    //   success: function (res) {
    //     that.setData({
    //       circle_det: res.data
    //     })
    //   }
    // })

    wx.request({
      url: app.globalData.data_url + '/GPD/getMerchantAndFee.do',
      data: {
        session_id: app.globalData.sessionId
      },
      success(res) {
        if (res.data.code === '0') {
          console.log("执行后续操作")
          that.setData({
            circleList: res.data.rfms
          })
        } else if (res.data.code === '1') {
          wx.showToast({
            title: '对不起，您还没有商圈~',
            icon: "none",
            duration: 2000
          })
          setTimeout(
            ()=>{
              wx.navigateBack({
                delta: 1
              })
            },2000
          )
        }
      }
    })
  },
  onReady: function () {

  },
  onShow: function () {

  },
  onHide: function () {

  },
  onUnload: function () {

  },
  onPullDownRefresh: function () {

  },
  onReachBottom: function () {

  }
})		